<template>
  <div class="bargain">
    <div class="bargain_box" v-for="(item, index) in Bargain" :key="index">
      <div class="bargain_box_right">
        <!-- 图片 -->
        <img :src="item.pic" alt="" />
      </div>
      <div class="bargain_box_left">
        <div class="bargain_box_left_top">
          <p class="bargain_box_left_top_p1">{{ item.name }}</p>
          <!-- <p class="bargain_box_left_top_p2"></p> -->
        </div>
        <div class="bargain_box_left_bottom">
          <div class="bargain_box_left_bottom_box">
            <div class="bargain_box_left_bottom_box_lowPrice">
              <p class="bargain_box_left_bottom_box_lowPrice_p1">
                ￥{{ item.minPrice }}
              </p>
              <p class="bargain_box_left_bottom_box_lowPrice_p2">低价</p>
            </div>
            <div class="bargain_box_left_bottom_box_originalCost">
              <p>￥{{ item.originalPrice }}</p>
              <p>原价</p>
            </div>
            <div class="bargain_box_left_bottom_box_quantity">
              <p>{{ item.stores }}</p>
              <p>限量</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    Bargain: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style>
.bargain {
  width: 100%;
}
.bargain_box {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid gray;
}
.bargain_box_right {
  width: 35%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bargain_box_right img {
  width: 75%;
  height: 90px;
  border-radius: 5px;
}
.bargain_box_left {
  width: 65%;
  height: 100px;
}
.bargain_box_left_top {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.bargain_box_left_top_p1 {
  font-size: 14px;
  color: gray;
}

.bargain_box_left_bottom {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.bargain_box_left_bottom_box {
  width: 68%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bargain_box_left_bottom_box_lowPrice {
  width: 30%;
  text-align: center;
}

.bargain_box_left_bottom_box_lowPrice_p1 {
  font-weight: 800;
  color: red;
  font-size: 14px;
}
.bargain_box_left_bottom_box_lowPrice_p2 {
  font-size: 12px;
}
.bargain_box_left_bottom_box_originalCost {
  font-size: 12px;
  color: grey;
  text-align: center;
}

.bargain_box_left_bottom_box_quantity {
  font-size: 12px;
  color: grey;
  text-align: center;
}
</style>